import request from '../utils/request';
import {stringify} from "querystring";


export const text2catalog = text => {
    return request({
        url: '/api/v1/bookcatalogmake/text2catalog',
        method: 'post',
        data:stringify({
            text:text,
            flag:1
        }),
        headers : {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    });
};

export const fetchData = query => {
    return request({
        url: './table.json',
        method: 'get',
        params: query
    });
};
